package com.OHS.pojo.utils;

import com.OHS.pojo.Member;
import com.OHS.pojo.dao.MemberDAO;

import java.util.HashMap;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        MemberDAO memberDAO = MybatisUtil.getMapper(MemberDAO.class);
        HashMap<String,Object> params = new HashMap<String,Object>();
        params.put("keyWord","%花%");
        List<Member> members = memberDAO.searchMemberByNick(params);
        for (Member member : members) {
            System.out.println(member);
        }
    }
}
